
/**
 * @desc 采集器表
 */
import { Column, DataType, Model, PrimaryKey, Table } from 'sequelize-typescript';

@Table({
    modelName: 'collector',
})

export class Company extends Model<Company> {

    @PrimaryKey
    @Column({
        type: DataType.NUMBER,
        comment: '采集器ID',
    })
    id: number;

    @Column({
        type: DataType.STRING,
        comment: '采集器名称',
    })
    name: string;

    @Column({
        type: DataType.STRING,
        comment: '采集器推送地址',
    })
    push_ip: string;

    @Column({
        type: DataType.STRING,
        comment: '采集器推送端口',
    })
    push_host: string;
}